Calculate the sum over a containerΒΆ
Calculate the sum over a container.
s = sum([10,20,30])
print("\nSum of the container: ", s)
Output:
Sum of the container: 60
s = sum([10,20,30])
print("\nSum of the container: ", s)
Output:
Sum of the container: 60